<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/css.jsp"%>
<%@ include file="/common/include/pageExpires.jsp"%>
<%@ include file="/common/include/taglibs.jsp"%>
<%@ include file="/common/include/dictNames.jsp"%>
<%@ include file="/common/include/currUserInfo.jsp"%>
<%@ page import="com.kylin.module.study.orm.*" %>
<table width="461"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="461" align="center"><span class="tl02left"><img src="/images/logo.gif" width="309" height="80" /></span></td>
  </tr>
  <tr>
    <td align="left"><bean:message key="study.04"/></td>
  </tr>
</table>
<br>
<%
	if(request.getAttribute(Constants.KEY_REQUEST_RESULT) != null)
	{
		Vocabulary obj = (Vocabulary)request.getAttribute(Constants.KEY_REQUEST_RESULT);

 %>
<form name="form1" action="/module/study/_nodeco/vocabulary.do?CMD=saveError" method="post">
<table width="480"  border="0" align="center" cellpadding="0" cellspacing="0">
	<input type="hidden" name="vocabularyId" value="<%=obj.getId() %>">
  <tr align="left">
    <td height="30" align="left"><bean:message key="study.05" />：<%=obj.getTranslation() %></td>
  </tr>
  <tr >
    <td height="30" align="left"><bean:message key="study.06" />：<%=obj.getContent() %></td>
  </tr>
  <tr>
    <td height="30" align="left"><bean:message key="study.07" /></td>
  </tr>
  <tr>
    <td align="left" nowrap><textarea name="description" cols="40" rows="5"></textarea></td>
  </tr>
  <tr align="center">
    <td height="40" colspan="2">
    <input type="button" onclick="return returnMessage(document.form1.description.value);" value="<bean:message key="base.19" />"></td>
  </tr>
</table>
</form>
<%	
	}
	else
	{
		out.println("没有该词汇");
	} 
%>
<script language="javascript">
function returnMessage(desc)
{
	if(desc.length < 1)
	{
		alert("<bean:message key='study.09'/>");
		document.form1.description.focus();
		return false;
	}
	else
	{
		alert("<bean:message key='study.08'/>");
		document.form1.submit();
		window.close();
	}
}
</script>
